import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import AddCourse from '@/components/AddCourse'
import Show from '@/components/Show'
import Index from '@/components/Index'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/AddCourse',
      name: 'AddCourse',
      component: AddCourse
    },
    {
      path: '/Show',
      name: 'Show',
      component: Show
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index
    }
  ]
})
